*** WooCommerce Min/Max Quantities Changelog ***

= 5.2.15 - 2026-10-21 =
* Fix - Named the variation attributes in cart quantity notices when the variation title leaves them out, so sibling variations can be told apart.
* Dev - Updated the release deployment to WooCommerce.com.
* Dev - Raised the PHPStan analysis level to 3.
* Dev - Raised the PHPStan analysis level to 4.
* Dev - Raised the PHPStan analysis level to 5.
* Dev - Raised the PHPStan analysis level to 6.
* Dev - Fixed PHPStan level 6 findings that needed behavior changes.
* Dev - Raised the PHPStan analysis level to 7.

= 5.2.14 - 2026-10-14 =
* Fix - Stopped showing variations as "Out of stock" with "Combine variations" enabled when another variation could be backordered or had negative stock.
* Tweak - Raised minimum requirements to WordPress 7.0 and WooCommerce 11.1.
* Dev - Updated @wordpress/scripts to 36.1.
* Dev - Updated development dependencies to address security advisories.

= 5.2.13 - 2026-10-07 =
* Fix - Updated product structured data availability to reflect minimum quantity stock requirements.
* Fix - Fixed stale quantity rules after REST metadata updates and CSV imports without clearing unrelated product caches.
* Fix - Fixed parent product permission checks across supported variation generation routes.
* Fix - Required parent-product edit permission when variation generation defaults write quantity rules.
* Fix - Required parent product access to read variation quantity rules through the Abilities API.
* Tweak - Raised minimum requirements to WordPress 6.9 and WooCommerce 10.9.
* Tweak - Declared compatibility with WordPress 7.1 and WooCommerce 11.2.
* Dev - Updated development dependencies to address security advisories.
* Dev - Hardened release artifact verification, release pull request checks, and WordPress test metadata.
* Dev - Updated the development toolchain to Node 24.18 and @wordpress/scripts 35.
* Dev - Corrected hook docblocks and other PHPStan findings that do not change behavior.
* Dev - Raised the PHPStan analysis level to 2.
* Dev - Switched the version headings in changelog.txt to the WordPress.org format.

= 5.2.12 - 2026-09-02 =
* Fix - Rejected fractional quantities that violate integer "Group of" rules.
* Fix - Refreshed quantity rules after product category assignments or category rules change.
* Fix - Required parent-product edit permission before applying variation quantity rules through REST.
* Fix - Prevented variation quantity-rule saves from targeting a variation outside the edited product.
* Fix - Enforced inherited quantity rules separately for each variation when "Combine variations" is disabled.
* Fix - Invalidated quantity-rule caches after REST updates finish saving.
* Fix - Limited category-rule saves and cache invalidation to authorized product-category updates.
* Fix - Protected saved administrative notices from unauthorized requests.
* Fix - Escaped product, variation, and category names in quantity-rule admin notices.
* Dev - Pinned external workflow code that receives repository secrets.
* Dev - Managed changelog entries with Jetpack Changelogger: pull requests now add a change file under changelog/ instead of editing changelog.txt.
* Dev - Removed redundant and low-value tests.

= 5.2.11 - 2026-08-19 =
* Fix - Product and variation Minimum/Maximum quantities are now validated against the "Group of" value defined by a category rule, not only against the product's own.
* Fix - The "Group of" warning notice on the product edit screen never appeared on page load.
* Dev - Restored TLS certificate verification and fail-closed error handling in the release deployment script.
* Dev - Fixed the unit-test CI matrix so coverage config matches this repository.
* Dev - Re-enabled JavaScript linting in the release pipelines.
* Dev - Pinned and checksum-verified the WP-CLI executable used in release builds.
* Dev - Added Markdown, dependency license, and WordPress.org Plugin Check gates to the pull request CI.
* Dev - Updated the npm build toolchain to resolve all remaining Dependabot security alerts.
* Dev - Standardized the package license identifier on GPL-3.0-or-later.
* Dev - Exposed the shared `.ai/commands` to agent tooling and documented the isolated worktree setup.
* Dev - Removed the dead test:jest script and Jest configuration.
* Dev - Enabled CSS linting in CI and fixed source style violations.
* Dev - Enabled JavaScript linting in CI and migrated the ESLint setup to the flat config format required by ESLint 10, aligning the lint and formatting toolchain with WooCommerce core.
* Dev - Removed release credentials from pull request E2E jobs.
* Dev - Update wp-coding-standards/wpcs to 3.4.1 (security release) in the phpcs lint tooling.
* Dev - Update development npm dependencies to resolve security advisories in the build toolchain.
* Dev - Update PHP development dependencies to resolve security advisories in the test toolchain.
* Dev - Hardened the QIT test workflow: pinned the QIT CLI version and stopped workflow inputs from being interpolated into shell source.

= 5.2.10 - 2026-07-22 =
* Add - Important: WordPress 6.8+ is now required.
* Add - Important: WooCommerce 10.6+ is now required.
* Tweak - Bumped WooCommerce "tested up to" version to 11.0.

= 5.2.9 - 2026-06-16 =
* Fix - Fixed max quantity validation when the product is already in the cart, preventing misleading add-to-cart success notices.
* Tweak - Bumped WordPress tested up to version to 7.0.
* Tweak - Bumped WooCommerce tested up to version to 10.9.
* Dev - Added read-only WordPress Abilities API support for Min/Max Quantities rules.
* Dev - Updated the JavaScript build toolchain to the React 18.3 line and added React 19 readiness guards.

= 5.2.8 - 2025-12-03 =
* Tweak - Replaced wc_enqueue_js with wp_add_inline_script according to the recommended WordPress core script patterns.
* Tweak - Bumped WordPress tested up to version to 6.9.
* Tweak - Bumped WooCommerce tested up to version to 10.4.

= 5.2.7 - 2025-09-02 =
* Tweak - Update plugin authors and contributors.

= 5.2.6 - 2025-07-29 =
* Fix - Fixed an issue that prevented Combine variations resolution notices from displaying accurate data in the cart.
* Fix - Fixed an issue that prevented quantity rules from applying to Sold Individually Variable Products with Combine variations enabled.
* Fix - Fixed fatal error when trying to purchase a Sold Individually product using the checkout block.

= 5.2.5 - 2025-05-20 =
* Fix - Improved performance by preventing backorder calculations from running when the minimum stock quantity is zero.

= 5.2.4 - 2025-04-10 =
* Tweak - Introduced basic telemetry to collect data on extension usage when tracking is enabled.

= 5.2.3 - 2025-03-20 =
* Fix - Fixes issue with REST API not clearing cached values.

= 5.2.2 - 2025-03-11 =
* Fix - Fixed out of stock message not taking all variations stock into account when 'Combine variations' is enabled.
* Tweak - Used 'wc_min_max_use_group_as_min_quantity' to filter quantity input value.

= 5.2.1 - 2025-02-13 =
* Fix - Release date in changelog.

= 5.2.0 - 2025-02-11 =
* Add - Added minimum and maximum quantity rules for categories.
* Add - Added support for the 'Combine Variations' option for Variable Subscription products.
* Tweak - Important: Removed compatibility with the new Product Editor.

= 5.1.0 - 2025-01-14 =
* Add - Updated Minimum/Maximum Order Value settings to support decimal values.
* Add - Always include taxes while evaluating order restrictions. To prevent taxes from being included, use the 'wc_min_max_quantity_include_tax_order_value_restrictions' filter.

= 5.0.4 - 2024-11-20 =
* Add - Added compatibility with WordPress 6.7.
* Fix - Fixed an issue where the quantity fields didn't appear for variations when the 'Quantity rules' was checked.

= 5.0.3 - 2024-11-01 =
* Fix - Fixed extra spaces in value attribute when saving variations.

= 5.0.2 - 2024-10-22 =
* Fix - Resolved a fatal error triggered by corrupt Variable Products in express checkout buttons integrations.

= 5.0.1 - 2024-07-31 =
* Fix - Deactivate plugin for WooCommerce versions prior to 8.2 to avoid fatal errors.

= 5.0.0 - 2024-07-30 =
* Add - Important: PHP 7.4+ is now required.
* Add - Important: WooCommerce 8.2+ is now required.
* Add - Important: WordPress 6.2+ is now required.
* Important - Removed all previously deprecated code.
* Tweak - Improved handling of orphaned variations to avoid fatal errors.

= 4.3.2 - 2024-06-04 =
* Tweak - Updated REST API validation to prevent incompatible quantity rules from being set.
* Fix - Hide express checkout buttons on Single product page when Min/Max quantity can't be verified.
* Fix - Resolved a fatal error triggered when trying to get the 'Group of' value of orphaned variations via REST API.
* Fix - Improved validation of values when getting maintenance and dismissed notices from the DB.

= 4.3.1 - 2024-05-15 =
* Fix - Resolved an issue in the REST API that returned a cached 'Group of' value.
* Fix - Resolved a fatal error triggered by the REST API when trying to set a 'Group of' value with an empty Min/Max Quantity.

= 4.3.0 - 2024-04-16 =
* Add - Added REST API support.

= 4.2.3 - 2024-04-09 =
* Add - Added activation notice.
* Tweak - Updated the way of identifying hydration context in Store API requests.
* Fix - Fixed a bug where variation notices could be incorrectly displayed.

= 4.2.2 - 2024-03-26 =
* Fix - Fixed an error that prevented correctly retrieving variation rules in some rare cases.

= 4.2.1 - 2024-03-19 =
* Fix - Disabled Quantity Rules when the product is Sold Individually.

= 4.2.0 - 2024-03-12 =
* Add - Added compatibility with the new Product Editor.

= 4.1.4 - 2024-01-24 =
* Tweak - Deferred frontend scripts.
* Add - Added compatibility with PHP 8.3.

= 4.1.3 - 2023-11-16 =
* Fix - Resolved an issue that incorrectly hid quantity inputs in the short-code based cart.

= 4.1.2 - 2023-10-26 =
* Add - Added compatibility with PHP 8.2.
* Tweak - Declared compatibility with the cart/checkout Blocks.
* Fix - Resolved fatal error that was triggered when saving variations without quantity rules.
* Fix - Resolved a warning that was occasionally triggered when viewing the Cart block.

= 4.1.1 - 2023-08-28 =
* Fix - Updated 'Exclude From > Order rules' tooltip.

= 4.1.0 - 2023-05-22 =
* Fix - Important: Security improvements.
* Add - Added admin notice to stores that use a PHP version earlier than 7.0.

= 4.0.7 - 2023-02-27 =
* Update - Hid product/variation quantity selector when the Minimum Quantity = Maximum Quantity = 1.
* Fix - Updated maximum quantity resolution notice to fix a syntax error.
* Fix - Fixed an issue that prevented the quantity selector from showing up for variations without a Maximum Quantity.

= 4.0.6 - 2022-11-29 =
* Fix - Fixed fatal error triggered in WordPress versions prior to 6.1.0.

= 4.0.5 - 2022-11-28 =
* Fix - Resolved an issue that assigned negative stock values as variations minimum quantity.

= 4.0.4 - 2022-10-18 =
* Fix - Resolved an issue that made empty notices show up in the block-based cart.
* Fix - Fixed an issue that prevented variation-level rules from applying to the cart.
* Fix - Re-declared compatibility with the new Custom Order Tables.

= 4.0.3 - 2022-10-11 =
* Fix - Revert declared compatibility with the new Custom Order Tables.

= 4.0.2 - 2022-10-10 =
* Tweak - Added support for category 'Group of' rules in the block-based cart.
* Tweak - Declared compatibility with the new Custom Order Tables.
* Tweak - Disabled 'Exclude from Category rules' when product/variation-level 'Group of' rules are defined. Product/variation-level 'Group of' rules automatically override category 'Group of' rules.
* Fix - Fixed an issue that prevented checkout when a product with multiple categories with conflicting 'Group of' rules was added to the cart.

= 4.0.1 - 2022-09-26 =
* Fix - Fixed "Exclude" checkboxes styles.

= 4.0.0 - 2022-09-26 =
* Important - WooCommerce 3.9+ and PHP 7.0+ are now required.
* Important - Refactored the 'Combine variations' option. When enabled, the quantities of all variations are combined to check the Minimum/Maximum quantity and 'Group of' rules of a Variable Product.
* Important - Prevented the use of 'Combine variations' together with variation-level quantity rules. Variation-level quantity rules are ignored when 'Combine variations' is active.
* Important - Dropped support for the 'Order rules: Do not count option'. To prevent the quantity or price of products/variations from being counted towards Minimum/Maximum order quantity/value rules, it is necessary to use the 'wc_min_max_quantity_minmax_do_not_count' filter.
* Tweak - Removed Minimum/Maximum quantity and Group of validation messages on Add to Cart when 'Combine variations' is active.
* Tweak - Removed cart validation notices from the single product page.
* Tweak - Renamed the variation-level 'Min/Max rules' checkbox to 'Quantity rules'.
* Tweak - UI facelift. Added title above Min/Max Quantities settings, fixed styling issues, and added new tooltips.
* Tweak - Renamed product/variation-level exclude settings.
* Tweak - Prevented users from increasing the quantity of a variation cart item above the Variable Product’s Maximum Quantity when 'Combine variations' is active.
* Tweak - Updated plugin strings.
* Fix - Prevented negative ‘Group of’ values from being saved when creating a new category.
* Fix - Ensured that category-level Group of rules can apply to variations.

= 3.0.2 - 2022-09-15 =
* Fix - Add missing minified scripts.

= 3.0.1 - 2022-09-13 =
* Ensure that variation level Min/Max settings are only visible when the Min/Max rules checkbox is checked.

= 3.0.0 - 2022-08-25 =
* Add - Added compatibility with the Cart and Checkout blocks.
* Improvement - Add admin validation when filling in, changing and saving Minimum, Maximum and Group of quantity values.
* Improvement - Add admin notices to products/variations that are already saved with invalid Minimum and Maximum quantity values.
* Improvement - Automatically correct invalid values when configuring or saving the Minimum/Maximum quantity settings.
* Fix - Cast product price and quantity to float to avoid type error.
* Fix - Specific variation title not showing in quantity error notice.
* Fix - Styling of checkbox labels and tooltips in add new product page.
* Dev - Remove inline JavaScript scripts and create separate script files that are enqueued via the 'wp_enqueue_scripts' and 'admin_enqueue_scripts' hooks.

= 2.4.26 - 2022-08-23 =
* Add - Implement support for automatic translation files delivery.
* Add - PHP Compatibility GitHub Action.
* Tweak - WC 6.8.0 compatibility.

= 2.4.25 - 2022-05-26 =
* Fix - Tweak- Bump tested up to WordPress 6.0.
* Fix - Update composer.json to include the /languages folder in the release.

= 2.4.24 - 2021-07-02 =
* Add - Quantity attribute to add to cart link.
* Fix - Wrong quantity calculation when both group of quantity setting and minimum setting are set.

= 2.4.23 - 2021-06-17 =
* Fix - Ensure total quantity number is accurate in the minimum quantity error message.
* Fix - Update label and description of ""Allow Combination" option.
* Tweak - Update labels for the "Do not count" and "Exclude" options.
* Tweak - WC 5.4 compatibility.
* Tweak - WP 5.7 compatibility.

= 2.4.22 - 2021-05-20 =
* Fix - Ensure that when on a Grouped Product page, all products can have their quantity set to zero, even if a product has a "Group of" value set.
* Fix - Make sure "Do not count" and "Exclude" rules are taken into account when there are existing products in the cart and new products are added.
* Fix - On variable products, ensure the "Allow Combination" setting is properly handled.
* Fix - add minimum and step values to all number inputs in the admin, to avoid being able to enter negative numbers.
* Fix - ensure we have terms before trying to use them.
* Tweak - add error notice if WooCommerce isn't active.
* Update - Standardize format and copy of error messages.

= 2.4.21 - 2021-05-04 =
* Add - Output any error messages we might have on the checkout cart error template.
* Fix - Category-level rules now correctly apply to Grouped Products.
* Fix - Ensure 'Do not count' order rules work if the product with those rules is the only one in the cart.
* Tweak - WC 5.2.2 compatibility.
* Tweak - WP 5.7.1 compatibility.

= 2.4.20 - 2020-10-06 =
* Tweak - Set initial quantity to group of quantity when we don't have a minimum quantity.
* Tweak - WC 4.5 compatibility.

= 2.4.19 - 2020-08-19 =
* Tweak - WP 5.5 compatibility.

= 2.4.18 - 2020-06-10 =
* Tweak - WC 4.2 compatibility.

= 2.4.17 - 2020-05-12 =
* Fix - Prevent multiple notices from showing up.
* Fix - Group by setting not resetting correctly between variations.

= 2.4.16 - 2020-04-29 =
* Tweak - WC 4.1 compatibility.

= 2.4.15 - 2020-03-04 =
* Add - Package.json and POT file build script.
* Fix - Update language POT file.
* Tweak - Improve plugin description.
* Tweak - Remove legacy code.
* Tweak - WC 4.0 compatibility.

= 2.4.14 - 2020-02-04 =
* Fix - Use proper escape for attributes.

= 2.4.13 - 2020-01-13 =
* Add - Cart link to the error message when quantity or order value matches or exceeds whats already in cart.
* Tweak - WC 3.9 compatibility.

= 2.4.12 - 2019-11-04 =
* Tweak - WC 3.8 compatibility.

= 2.4.11 - 2019-10-03 =
* Add - Add wc_min_max_cart_quantity_do_not_count filter to skip counting a line item in the cart.

= 2.4.10 - 2019-08-12 =
* Tweak - Fixed minor issues.

= 2.4.9 - 2019-08-12 =
* Tweak - Copyright year and fixed minor issues.

= 2.4.8 - 2019-08-08 =
* Tweak - WC 3.7 compatibility.

= 2.4.7 - 2019-07-02 =
* Fix - Erroneous logic for excluded category products.

= 2.4.6 - 2019-04-15 =
* Tweak - WC 3.6 compatibility.

= 2.4.5 - 2018-10-10 =
* Update - WC 3.5 compatibility.

= 2.4.4 - 2018-08-22 =
* Fix - Allow combination setting not working correctly on cart page.
* Add - Translation POT file.
* Fix - Restrict quantity admin settings to whole numbers to avoid confusion.

= 2.4.3 - 2018-05-28 =
* Fix - Group of quantity not working in cart for variable product.
* Fix - Min price field being cleared when paired with Measurement Price Calculator.

= 2.4.2 - 2018-05-21 =
* Update - WC 3.4 compatibility.

= 2.4.1 - 2017-12-12 =
* Update - WC tested up to version.

= 2.4.0 - 2017-12-11 =
* Fix - When groups value set to 1 the value is ignored.
* Feature - Add setting "Allow Combination" for variable products to consider all variations as part of the rule.
* Remove - Composite compatibility check as they're now compatible.

= 2.3.18 - 2017-06-28 =
* Fix - Issue when global level rules not applying correctly to items adding to cart.
* Fix - Issue with product level exclusion not overriding global rule settings.
* Fix - Cart level maximum order qty rules were not applying correctly.
* Add - WooCommerce plugin header.

= 2.3.17 - 2017-06-15 =
* Fix - Add to cart message showing successful when not.

= 2.3.16 - 2017-04-03 =
* Fix - Update for WooCommerce 3.0 compatibility.

= 2.3.15 - 2016-12-16 =
* Fix - Quantity duplication issue on compat with Multiple Shipping Addresses.
* Fix - Variations pagination prompting for save changes when nothing has changed.

= 2.3.14 - 2016-08-10 =
* Fix - Group of setting for variation resets to 1 after choosing variation.

= 2.3.13 - 2016-04-11 =
* Fix - issue where category-level rule not enforced if product amount exceeds rule minimum amount

= 2.3.12 - 2016-03-21 =
* Fix - issue where group of setting does not match minimum when back order is allowed.

= 2.3.11 - 2016-03-02 =
* Fix - Variation product on cart level, is not validating minimum quantity when general minimum quantity is set.

= 2.3.10 - 2016-01-27 =
* Fix - Show correct stock statuses when minimum quantity is greater than actual stock.

= 2.3.9 - 2015-11-03 =
* Fix - Variation level category exclude option not working.
* Add - Compatibility with Composite Products plugin to disable min/max logic when product is of type composite.

= 2.3.8 - 2015-10-06 =
* Fix - Min/Max Rules checkbox behavior for variations.
* Tweak - Improved languages load.

= 2.3.7 - 2015-07-28 =
* Fix - General setting fields accepted non numeric values when shouldn't

= 2.3.6 - 2015-04-13 =
* Fix - Change when totals are calculated for items.

= 2.3.5 - 2015-04-13 =
* Fix - add to cart validation for minimum quantity
* Fix - input_value for grouped products.

= 2.3.4 - 2015-03-18 =
* Fix - cart exclude did not account for variations
* Fix - Set minimum step to group of if minimum quantity is not set

= 2.3.3 - 2015-03-10 =
* Removed object re-assignment during manage stock check as it is not needed at that level

= 2.3.2 - 2015-03-02 =
* Check WC_VERSION constant is defined before calling
* Added tooltip for settings within variation level
* Fix - Simple product was not correctly adding group of when both min and max value are not equally disivible
* Make variation product aware of product level settings and override when necessary
* Fix - cart not aware of qty settings for variations
* Fix - add to cart rule check using string compare instead of int
* Fix - Cart validation rules
* Simple refactor
* Updated Textdomain name

= 2.3.1 - 2015-02-20 =
* Fix - typos on variation meta names
* Fix - Max qty was not working on simple product

= 2.3.0 - 2015-02-03 =
* Sanitized user inputs from settings
* Properly apply min max rules to variations
* WooCommerce 2.3 compatibility

= 2.2.8 - 2014-04-08 =
* Prevent total counts stacking when the same ID is in the cart twice

= 2.2.7 - 2014-02-25 =
* Correctly total cart when variations have different prices

= 2.2.6 - 2014-02-04 =
* Fix_value shouldn't apply to cart page

= 2.2.5 - 2014-02-04 =
* Don't set min for variable products with rules at product level only.

= 2.2.4 - 2014-01-28 =
* Filters for values when checking cart items

= 2.2.3 - 2014-01-16 =
* 2.1 compatibility

= 2.2.2 - 2013-09-04 =
* Add currency to notices

= 2.2.1 - 2013-08-23 =
* Fix available_variation rules

= 2.2.0 - 2013-08-12 =
* If min qty is divisible by group of, allow step attribute

= 2.1.4 - 2013-05-29 =
* Legacy fix

= 2.1.3 - 2013-05-23 =
* Fix variation rules.

= 2.1.2 - 2013-05-13 =
* Prevent notices

= 2.1.1 - 2013-04-29 =
* No min quantity for variations, as you don't know what else is in the cart.

= 2.1.0 - 2013-03-30 =
* Group of.. per category.

= 2.0.4 - 2013-03-28 =
* Fixed step attribute for groupof. Set value to 0.
* Disabled step on cart page, so corrections can be made.

= 2.0.3 - 2013-03-22 =
* Min quantity used for ajax add to cart buttons

= 2.0.2 - 2012-12-22 =
* Ensure the modified price is used for cart items

= 2.0.1 - 2012-12-22 =
* Fix for variation prices

= 2.0.0 - 2012-12-04 =
* Fixed order rules to work with variations
* "Group of" option - lets you sell items in groups of X
* Define min/max options per variation
* WC 2.0 compatibility

= 1.2.2 - 2012-12-04 =
* New updater

= 1.2.1 - 2012-09-10 =
* Rule fixes

= 1.2 - 2012-09-10 =
* Per-product options to exclude items from cart rules.

= 1.1.1 - 2012-03-20 =
* use subtotal instead of cart contents total (to include tax)

= 1.1 - 2012-02-23 =
* Class name change
* Options for setting a min/max order VALUE
* data-min/max for quantity selectors (WC 1.4.5 + only)
* Prevent add to cart if limit is breached

= 1.0.2 - 2012-01-26 =
* WC 1.4 Compatibility
* Added WooCommerce Updater

= 1.0.1 - 2011-11-15 =
* Changed textdomain

= 1.0 - 2011-11-09 =
* First Release
